<div class="related">
	<h1><?php __('Website Approvals');?></h1>

	<?php if( !empty($rCustomerSites) ): ?>
	<p><br/></p>
	<table cellpadding = "0" cellspacing = "0">
	<tr style="background:#fff">
		<th><?php __('Designer'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
		<th><?php __('Website'); ?></th>
		<th><?php __('Template'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Reviews'); ?></th>
		<th><?php __('Updated'); ?></th>
	</tr>
	
		<?php foreach( $rCustomerSites as $row ): ?>
			<tr>
				<td><?= $row['RDesigner']['name']; ?></td>
				<td>[D][E][V]</td>
				<td><?= $row['RCustomer']['name']; ?></td>
				<td><?= @$row['RReviewLayout'][0]['template']; ?></td>
				<td><?= $this->Html->link( $row['RCustomer']['email'], 
					'mailto:'.$row['RCustomer']['email'] ); 
				?></td>
				<td><?php echo $this->Html->link( __('Layout', true), 
						array('controller' => 'r_review_layouts',
							'action' => 'view', 3 /* customer site id */) ); 
				?></td>
				<td><?php $update = new DateTime( $row['RUpdate']['date'] ); 
					echo $update->format('m/d H:i:s A');
				?></td>
			</tr>
		<?php endforeach; ?>
	</table>
	<?php endif; ?>
</div>